package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Description 二级分类vo
 * @Author xuegang
 * @Date 2021-02-03 上午12:40
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {
    /**
     * 一级分类id
     */
    private String catalog1Id;
    /**
     * 三级子分类
     */
    private List<Catelog3Vo> catalog3List;
    /**
     * id
     */
    private String id;
    /**
     * name
     */
    private String name;

    /**
     * 三级分类vo
     * {
     * "catalog2Id":"1",
     * "id":"1",
     * "name":"电子书"
     * },
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catelog3Vo {
        /**
         * 父分类，二级分类id
         */
        private String catalog2Id;
        /**
         * id
         */
        private String id;
        /**
         * name
         */
        private String name;
    }
}
